package com.cn.lf.wx.dacs.bussiness.author.bean;

import com.cn.lf.wx.dacs.bussiness.author.utils.Code;

public class BaseException extends RuntimeException {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer code;
    private String message;
    
    

    public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public BaseException() {
        super(Code.Msg.FILED);
        this.code = Code.FILED;
        this.message = Code.Msg.FILED;
    }

    public BaseException(String message) {
        super(message);
        this.code = Code.FILED;
        this.message = message;
    }

    public BaseException(Throwable cause) {
        super(cause);
        this.code = Code.FILED;
        this.message = Code.Msg.FILED;
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
        this.code = Code.FILED;
        this.message = message;
    }

    public BaseException(Integer code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BaseException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
    }
}
